.class Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;
.super Lcom/netease/newsreader/util/GroupAdapter;
.source "SpecialAritcleTwo.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->handleMessage(Landroid/os/Message;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;Ljava/util/List;)V
    .locals 0
    .parameter
    .parameter "$anonymous0"

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    .line 738
    invoke-direct {p0, p2}, Lcom/netease/newsreader/util/GroupAdapter;-><init>(Ljava/util/List;)V

    return-void
.end method


# virtual methods
.method public getChildView(IILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9
    .parameter "groupPosition"
    .parameter "childPosition"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    const/4 v6, 0x0

    const v8, 0x7f08001f

    .line 743
    const/4 v2, 0x0

    .line 744
    .local v2, holder:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;
    if-nez p3, :cond_0

    .line 745
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$16(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/view/LayoutInflater;

    move-result-object v4

    const v5, 0x7f03006c

    invoke-virtual {v4, v5, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p3

    .line 746
    new-instance v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;

    .end local v2           #holder:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    invoke-direct {v2, v4, v6}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;-><init>(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;)V

    .line 747
    .restart local v2       #holder:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;
    const v4, 0x7f0c00c7

    invoke-virtual {p3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->title:Landroid/widget/TextView;

    .line 748
    const v4, 0x7f0c00ca

    invoke-virtual {p3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->article_date:Landroid/widget/TextView;

    .line 749
    const v4, 0x7f0c00c9

    invoke-virtual {p3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->comment_count:Landroid/widget/TextView;

    .line 750
    invoke-virtual {p3, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 756
    :cond_0
    invoke-virtual {p3}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    .end local v2           #holder:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;
    check-cast v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;

    .line 757
    .restart local v2       #holder:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$17(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v5

    iget-object v6, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->title:Landroid/widget/TextView;

    const v7, 0x7f080027

    invoke-virtual {v4, v5, v6, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 758
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$17(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v5

    iget-object v6, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->article_date:Landroid/widget/TextView;

    invoke-virtual {v4, v5, v6, v8}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 759
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$17(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v5

    iget-object v6, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->comment_count:Landroid/widget/TextView;

    invoke-virtual {v4, v5, v6, v8}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 760
    invoke-virtual {p0, p1, p2}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->getChild(II)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    .line 762
    .local v0, child:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v5, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->title:Landroid/widget/TextView;

    const-string v4, "title"

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 764
    const-string v3, "select * from article_read_status_list where article_read_doc_id=?"

    .line 769
    .local v3, sql:Ljava/lang/String;
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    iget-object v4, v4, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->db:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/String;

    const/4 v6, 0x0

    .line 770
    const-string v7, "docid"

    .line 769
    invoke-virtual {v0, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    .line 770
    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    .line 769
    invoke-virtual {v4, v3, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    .line 771
    .local v1, cursor:Landroid/database/Cursor;
    if-eqz v1, :cond_1

    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v4

    if-lez v4, :cond_1

    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 772
    const-string v4, "article_read_is_read"

    invoke-interface {v1, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    const-string v5, "Y"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 774
    iget-object v4, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->title:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v5

    const v6, 0x7f0a0014

    invoke-virtual {v4, v5, v6}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    .line 775
    iget-object v4, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$17(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v5}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v5

    iget-object v6, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->title:Landroid/widget/TextView;

    const v7, 0x7f080021

    invoke-virtual {v4, v5, v6, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 778
    :cond_1
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    .line 779
    iget-object v5, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->article_date:Landroid/widget/TextView;

    const-string v4, "ptime"

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 780
    iget-object v5, v2, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder;->comment_count:Landroid/widget/TextView;

    const-string v4, "replyCount"

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 783
    return-object p3
.end method

.method public getGroupView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "groupPosition"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    const/4 v4, 0x0

    .line 788
    const/4 v1, 0x0

    .line 789
    .local v1, holder1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;
    if-nez p2, :cond_0

    .line 790
    iget-object v2, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v2}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v2

    invoke-static {v2}, Lcom/netease/newsreader/activity/SpecialAritcleTwo;->access$16(Lcom/netease/newsreader/activity/SpecialAritcleTwo;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f03006d

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 791
    new-instance v1, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;

    .end local v1           #holder1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;
    iget-object v2, p0, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->this$1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;

    invoke-static {v2}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;->access$0(Lcom/netease/newsreader/activity/SpecialAritcleTwo$5;)Lcom/netease/newsreader/activity/SpecialAritcleTwo;

    move-result-object v2

    invoke-direct {v1, v2, v4}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;-><init>(Lcom/netease/newsreader/activity/SpecialAritcleTwo;Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;)V

    .line 792
    .restart local v1       #holder1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;
    const v2, 0x7f0c015a

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;->category_title:Landroid/widget/TextView;

    .line 793
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 795
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    .end local v1           #holder1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;
    check-cast v1, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;

    .line 796
    .restart local v1       #holder1:Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;
    invoke-virtual {p0, p1}, Lcom/netease/newsreader/activity/SpecialAritcleTwo$5$1;->getGroup(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 797
    .local v0, group:Ljava/lang/String;
    iget-object v2, v1, Lcom/netease/newsreader/activity/SpecialAritcleTwo$ViewHolder1;->category_title:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 798
    return-object p2
.end method
